package com.authine.cloudpivot.ext.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Collection;

/**
 * 库存
 * Created by Kris on 2019/4/1
 */
@Data
@Schema(description = "StockBillVO")
@ApiModel("库存表")
public class StockVO {
    @Schema(description = "库存ID集合")
    private Collection<String> ids;
    @Schema(description = "库存ID")
    private String id;//
    @Schema(description = "客户id")
    private Long customerId;//客户id
    @Schema(description = "供应商Id")
    private Long vendorId; // 供应商Id
    @Schema(description = "商品id")
    private String goodsId;//商品id
    @Schema(description = "发货单id")
    private String deliverId;//发货单id
    @Schema(description = "库存状态")
    private String status;
    @Schema(description = "品牌")
    private String brand;
    @Schema(description = "商品名称")
    private String name;
    @Schema(description = "型号")
    private String model;
    @Schema(description = "规格")
    private String spec;
    @Schema(description = "单位")
    private String unit;
    @Schema(description = "数量")
    private BigDecimal num;
    @Schema(description = "税率")
    private BigDecimal taxRate; // 商品税率 --
    @Schema(description = "未税单价")
    private BigDecimal pretaxPrice; // 未税单价 --
    @Schema(description = "含税单价")
    private BigDecimal price; // 含税单价 *
    @Schema(description = "未税合计")
    private BigDecimal pretaxTotal; // 未税合计 --
    @Schema(description = "含税合计")
    private BigDecimal total; // 含税合计 *
    @Schema(description = "税额")
    private BigDecimal taxPayable; // 税额
    @Schema(description = "安全库存数")
    private BigDecimal safetyStockNum; // 安全库存数
    @Schema(description = "客户名称")
    private String customerName;
    @Schema(description = "供应商名称")
    private String vendorName;
}
